<h1>Electric Power Industry Companies: <%= @searchMsg %></h1> 
<div class="yui-b">
	<p>
		<b>Owner Type</b><br/>
		<%= owner_filter_list(params[:owner]) %>
	</p>
	<p>
		<b>State</b><br/>
		<%= state_filter_list(params[:state]) %>
	</p>
</div>
<div id="yui-main">
	<div class="yui-b">
		<%= @searchMsg %>. <%= page_entries_info @companies %> 
		<table>
		  	<tr>
				<th>Code</th>
				<th>Name</th>
				<th>City</th>
				<th>State</th>
				<th>Zip</th>
				<th>Type</th>
				<th>Plants</th>
			</tr>
			<% for company in @companies %>
			<tr>
				<td align="right"><%= company.utilcode %>
			    <td>
			      <%= link_to(company.name, { :action => :view, :id => company.utilcode }) %>
			    </td>
			    <td>
			      <%= company.city %>
			    </td>
			    <td>
			      <%= company.state %>
			    </td>
			    <td>
			      <%= company.zip %>
			    </td>
			    <td>
			      <%= company.ownertype_full %>
			    </td>
			    <td align="right">
			      <%= company.plants.count %>
			    </td>
			</tr>
			<% end %>
		</table>
		<%= will_paginate @companies %>
	</div> 
</div>